<include file="public:header"/>
<style type="text/css">
    td{
        text-align: center;
    }
    table{
        font-size: 12px;
    }
    .table-bordered tbody tr td{
        text-align: left !important;
    }
    .table-detail thead tr th {
        background-color: #f5f6fa;
        border-bottom: 1px solid #e1e6eb;
        color: #999;
        font-weight: normal;
        padding: 8px;
    }
    #view_detail tr td {
       text-align: left !important;
    }
</style>
<!-- Page -->
<div class="page animsition">
    <div class="page-content padding-30 container-fluid">
        <div class="row" data-plugin="matchHeight" data-by-row="true">
            <!--左边-->
            <div class="col-md-12 col-md-12">
                <div class="panel">
                    <div class="panel-heading">
                        <h3 class="panel-title"><a href="javascript:history.back(-1);"><button type="button" class="btn btn-default" data-dismiss="modal">返回</button></a> &nbsp;订单概要</h3>
                    </div>
                    <div class="panel-body">
                         <div class="modal-body">
                            <div class="row">
                                <div class="col-sm-12">
                                    <table class="table table-bordered">
                                        <tbody>
                                        <tr>
                                            <td>订单编号： <span id="view_no">{$list.orderid}</span></td>
                                            <td>订单类型： <span id="view_type">购买云主机</span></td>
                                        </tr>
                                        <tr>
                                             <td>实例： <span id="view_no">{$list.eidname}</span></td>
                                             <td>地域： <span id="view_no">{$list.diyuname}</span></td>
                                        </tr>
                                         <tr>
                                            <td>计费方式： 
                                                <span id="view_no">
                                                <if condition="$list.jifei eq 'PrePaid'">
                                                  包年包月
                                                <else/>
                                                  按量付费
                                                </if>  
                                                </span>
                                             </td>
                                             <td>镜像： <span id="view_no">{$list.areaimg.osname}</span></td>
                                        </tr>
                                        <tr>
                                            <td>系统盘： 
                                                <span id="view_no">
                                                <if condition="$list.xipan eq 'cloud_efficiency'">
                                                    高效云盘
                                                <else/>
                                                    SSD云盘
                                                </if>
                                                </span>
                                             </td>
                                             <td>内存： <span id="view_no">{$list.xipannei}GB</span></td> 
                                        </tr>
                                        <notempty name="list.shujunei">
                                        <tr>
                                            <td>数据盘： 
                                                <span id="view_no">
                                                {$list.shuju}
                                                </span>
                                             </td>
                                             <td>内存： <span id="view_no"> {$list.shujunei}GB</span></td> 
                                        </tr>
                                        </notempty>
                                        <tr>
                                            <td>创建时间： <span id="view_createtime">{$list.ordertime|date="Y-m-d H:i:s",###}</span></td>
                                            <td>支付时间： 
                                                <span id="view_paytime"> 
                                                    <if condition="$list.state eq 1">
                                                    {$list.endtime|date="Y-m-d H:i:s",###}
                                                    <else/>
                                                    <span style="color: red">未支付</span>
                                                    </if>
                                                </span>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <div class="row" style="float: right;">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label class="control-label" for="create_price"><span style="color: red">实际金额：</span>￥ {$list.money}</label>
                                                
                                            </div>
                                        </div>
                                        <if condition="$list.state eq 0">
                                            <a href="{:U('home/service/sureorder',['orderid'=>$list['orderid']])}"><button type="button" class="btn btn-info"btn-danger" id="mount-submit" style="float: right;">去支付</button></a>
                                        </if>
                                       <!--  <if condition="$list.state eq 1">
                                            <button type="button" class="btn btn-success"btn-danger" id="mount-submit" style="float: right;">已支付</button>
                                        <elseif condition="$list.state eq 2"/>
                                            <button type="button" class="btn btn-danger"btn-danger" id="mount-submit" style="float: right;">取消</button>
                                        <else/>
                                              <a href="{:U('home/service/sureorder',['orderid'=>$list['orderid']])}"><button type="button" class="btn btn-info"btn-danger" id="mount-submit" style="float: right;">去支付</button></a>
                                        </if> -->
                                    </div>
                                </div>
                            </div> 
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<inclde file="public:footer"/>

